package com.chase.chasecat.controller;

import com.chase.chasecat.common.R;
import com.chase.chasecat.dto.AddPetDTO;
import org.springframework.web.bind.annotation.*;
import com.chase.chasecat.service.PetService;
import javax.annotation.Resource;

/**
 * 宠物管理
 * @author dreamer
 * @date 2023-11-08 21:54:57
 */
@RestController
@RequestMapping("chasecat/pet")
public class PetController {
    @Resource
    private PetService petService;

    /**
     * 新增宠物
     * @param addPetDTO
     * @return
     */
    @PostMapping("addPet")
    public R addPet(@RequestBody AddPetDTO addPetDTO){
        return petService.addPet(addPetDTO);
    }
}
